package com.handyshop.mall.dubbo.user.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.handyshop.mall.dubbo.entity.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Date;

@ApiModel(value = "会员可用积分表")
@Data
@EqualsAndHashCode(callSuper = true)
@TableName(value = "nrs_user_integral")
public class UserIntegral extends BaseEntity {
    /**
     * 会员ID
     */
    @TableField(value = "user_id")
    @ApiModelProperty(value = "会员ID")
    private Long userId;

    /**
     * 积分值
     */
    @TableField(value = "num")
    @ApiModelProperty(value = "积分值")
    private Integer num;

    /**
     * 过期时间
     */
    @TableField(value = "change_expire")
    @ApiModelProperty(value = "过期时间")
    private Date changeExpire;

    public static final String COL_ID = "id";

    public static final String COL_USER_ID = "user_id";

    public static final String COL_NUM = "num";

    public static final String COL_CHANGE_EXPIRE = "change_expire";

    public static final String COL_DELETE_FLAG = "delete_flag";

    public static final String COL_CREATOR_ID = "creator_id";

    public static final String COL_CREATOR = "creator";

    public static final String COL_CREATE_TIME = "create_time";

    public static final String COL_MODIFY_TIME = "modify_time";
}